[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DTROFF

 Function
  Turn off the serial port DTR signal.

 Syntax
  DTROFF   No arguments are required

 Remarks
  This statement turns off the serial port DTR signal.  Most modems take
  this condition to mean that they should hang up on a caller, and this is
  how PCBoard uses it.  This statement can be used when you need to hangup
  on a caller but don't want PCBoard to perform it's logoff processing.
  Simply turn off CD checking and keyboard timeout checking and issue the
  DTROFF statement.  Do whatever processing you want, then turn DTR,
  keyboard timeout testing, and CD loss testing back on to allow PCBoard
  to recycle normally.  Note that DTR should remain off for a period of
  time to ensure that the modem has time to react to it.  Consider 1/2
  second (about 9 clock ticks) a reasonable delay.

 Examples
  BOOLEAN flag
  KBDCHKOFF
  CDCHKOFF
  DTROFF
  DELAY 18
  DTRON
  SENDMODEM "ATDT5551212" ' Please don't really dial this number!
  WAITFOR "CONNECT",flag,60
  IF (!flag) SPRINLN "No connect found in 60 seconds"
  CDCHKON
  KBDCHKON

See Also: DTRON
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson